//
//  EvaluateTableViewCell.h
//  B2C
//
//  Created by 李小龙 on 2017/8/16.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HeartFiveView.h"
#import "OrderDetailTableViewCell.h"
#import "EvaluateModel.h"

typedef NS_ENUM(NSUInteger, EvaluateType) {
    EvaluateTypeAddImage,
    EvaluateTypeHeart,
    EvaluateTypeAnonymity,
    EvaluateTypeDeleteImage,
};

typedef void(^EvaluateCellBlock)(EvaluateType type);

@interface EvaluateTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet SZTextView *secondTextView;
@property (weak, nonatomic) IBOutlet UIView *secondShowPictureView;
@property (weak, nonatomic) IBOutlet UIButton *thirdAnonymityButton;
//@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentBackHLayout;

@property (weak, nonatomic) IBOutlet UIImageView *thirdImageView;
@property (weak, nonatomic) IBOutlet UILabel *thirdNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdSpecsLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdPriceLabel;

@property (nonatomic, copy) EvaluateCellBlock block;

+ (instancetype)evaluateCellWith:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;

- (HeartFiveView *)heartViewWithIndexPath:(NSIndexPath *)indexPath;
- (void)updateCellWith:(EvaluateModel *)model indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;

@end
